import {developUrl,serverDK} from "@/views/api/api"
import axios from "axios"
// 重置当前用户的密码的api
export const apiResetCurrPassword = (param) => {
    return axios(
        {
            method: "post",
            headers: {
                "Content-Type": "application/json"
            },
            // url: developUrl+serverDK+urlParam,
            url:'http://192.168.0.233:8784/uaa/user/curr/pass/update',
            data: param,
        }
    ).then(
        (res) => res
    ).catch(
        (error) => {
            console.log('出错:'+error)
        }
    );
}
// 重置密码api
export const apiResetPassword = (param) => {
    return axios(
        {
            method: "post",
            headers: {
                "Content-Type": "application/json"
            },
            // url: developUrl+serverDK+urlParam,
            url:'http://192.168.0.233:8784/uaa/user/pass/update',
            data: param,
        }
    ).then(
        (res) => res
    ).catch(
        (error) => {
            console.log('出错:'+error)
        }
    );
}

export const apiGetCurrentInfo = () =>{
    return axios(
        {
            method: "get",
            headers: {
                "Content-Type": "application/json"
            },
            url:'http://192.168.0.233:8784/uaa/user/getCurrentUserInfo',
        }
    ).then(
        (res) => res
    ).catch(
        (error) => {
            console.log('出错:'+error)
        }
    );
}
